/* 完全使用AppCan原生样式 */

/* 统一顶部样式 */
#Header_0 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: rgba(255,255,255,1);
    border-style: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

#Header_0 .tx-c {
    text-align: center !important;
}

#Header_0 h1 {
    text-align: center !important;
}
#ScrollContent {
    padding: 5em 0em 3.5em 0em;
    background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
}
/* AppCan原生底部导航样式 */

.newsban{
	background-image:url('myImg/yaoming.png');
}
.ub-imgnews
{	
	-webkit-background-size:100% 100%;
	background-size:100% 100%;
	background-repeat:no-repeat;
	background-position:center;
}

.uh-for1{
	height:10.625em;
}
.uh-for2{
	height:2.8em;
}
.c-bla-50{
	background-color:rgba(0,0,0,0.4);
}
.uwh-for1{
	width:0.25em;
	height:0.25em;
}
.uwh-for2{
	width:4.5625em;
	height:3.75em;
}
.uc-a-for1{
	-webkit-border-radius: 0.25em;
	border-radius: 0.25em;
}
.c-gra-for2{
	background-color:#767676;
}
.umar-r-for{
	margin-right:0.1875em;
}
.uinn-for1{
	padding:0.625em 0.625em 0.4375em 0.625em;
}
.t-gra-b1{
	color:#b1b1b1;
}
.ulh-for{
	line-height:1.4em;
}
.uinn-for2{
	padding:0.2em 0.5em;
}
.c-red-for3{
	background-color:#ad0000;
}
.uc-a-news{
	-webkit-border-radius: 0.2em;
	border-radius: 0.2em;
}
.ubas-nt{
	position:absolute;
	left:0;
	bottom:0;
}



.newstianjia{
    background-image: url('myImg/tianjia.png');
    background-size: cover;
    transition: all 0.3s ease;
}
.newstianjia:hover {
    transform: scale(1.1);
}
.t-btn-hf1{
    background-image: url('myImg/xuanzhong1.png');
}
input[type="radio"]:checked + div.fontcolor {
    color: #667eea;
    border-bottom: 2px solid #667eea;
    background: rgba(102, 126, 234, 0.05);
}
input[type=radio]+div.fontcolor {
    color: #636e72;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    padding: 0.5em 1em;
    border-radius: 8px;
}
input[type=radio]+div.fontcolor:hover {
    background: rgba(102, 126, 234, 0.05);
}
.uinn-hnfn2{
    padding: 0.78em 0;
}
.uw-hnfn1{
    width: 2.5em;
    height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.uw-hnfn1:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.1);
}
.us-hnfn {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}
.tp-news{
    background-image: url(myImg/f-btn-img2.png);
    transition: all 0.3s ease;
}
.f-btn-act .tp-news{
    background-image: url(myImg/f-btn-img2-act.png);
    transform: scale(1.1);
}
.tp-mito{
    background-image: url(myImg/f-btn-img3.png);
    transition: all 0.3s ease;
}
.f-btn-act .tp-mito{
    background-image: url(myImg/f-btn-img3-act.png);
    transform: scale(1.1);
}
.tp-subs{
    background-image: url(myImg/f-btn9.png);
    transition: all 0.3s ease;
}
.f-btn-act .tp-subs{
    background-image: url(myImg/f-btn9-act.png);
    transform: scale(1.1);
}
.tp-video{
    background-image: url(myImg/f-btn10.png);
    transition: all 0.3s ease;
}
.f-btn-act .tp-video{
    background-image: url(myImg/f-btn10-act.png);
    transform: scale(1.1);
}
.act-col{
    color: #2d3436;
    transition: all 0.3s ease;
}
.f-btn-act .act-col{
    color: #667eea;
    font-weight: 600;
}
.uwh-tBtn{
    width: 2em;
    height: 2em;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.uwh-tBtn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* 九宫格样式 - 使用AppCan文档+适度美化 */
#gridview {
    background: #fff;
    padding: 1.2em 1em;
    margin: 1em;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* 使用AppCan原生弹性布局 */
.grid-row {
    /* 使用ub类实现弹性布局 - 确保完全对齐 */
    margin-bottom: 1em;
}

.grid-row:last-child {
    margin-bottom: 0;
}

/* 使用AppCan原生的ub-f1类实现等分布局 */
.grid-item {
    /* ub-f1 会自动等分空间 */
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.2em 0.6em;
    margin: 0 0.4em;
    min-height: 5em;
    border: 1px solid #e9ecef;
    /* 添加不冲突的过渡效果 */
    transition: all 0.3s ease;
    cursor: pointer;
}

.grid-item:first-child {
    margin-left: 0;
}

.grid-item:last-child {
    margin-right: 0;
}

/* 悬浮美化效果 - 不与AppCan冲突 */
.grid-item:hover {
    background: #fff;
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.grid-item:active {
    transform: translateY(0);
}

/* 使用AppCan的ub类实现图标居中 */
.grid-icon {
    width: 2.8em;
    height: 2.8em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 50%;
    margin-bottom: 0.6em;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.grid-icon svg {
    width: 1.4em;
    height: 1.4em;
    fill: currentColor;
}

/* 悬浮时图标效果 */
.grid-item:hover .grid-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* 文字样式优化 */
.grid-item .ut-s {
    font-weight: 500;
    transition: all 0.3s ease;
}

.grid-item:hover .ut-s {
    color: #667eea;
    font-weight: 600;
}

/* 新闻列表美化 */
#listview {
    background: #fff;
    margin: 1em;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* 新闻项样式 */
.appcan-listview .lis {
    border-bottom: 1px solid #f1f2f6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.appcan-listview .lis:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.appcan-listview .lis:active {
    background: #e9ecef;
    transform: translateX(0);
}

.appcan-listview .lis:last-child {
    border-bottom: none;
}

/* AppCan原生底部导航 */

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.grid-item {
    animation: fadeInUp 0.6s ease;
}

.grid-item:nth-child(1) { animation-delay: 0.1s; }
.grid-item:nth-child(2) { animation-delay: 0.2s; }
.grid-item:nth-child(3) { animation-delay: 0.3s; }

.grid-row:nth-child(2) .grid-item:nth-child(1) { animation-delay: 0.4s; }
.grid-row:nth-child(2) .grid-item:nth-child(2) { animation-delay: 0.5s; }
.grid-row:nth-child(2) .grid-item:nth-child(3) { animation-delay: 0.6s; }

.grid-row:nth-child(3) .grid-item:nth-child(1) { animation-delay: 0.7s; }
.grid-row:nth-child(3) .grid-item:nth-child(2) { animation-delay: 0.8s; }
.grid-row:nth-child(3) .grid-item:nth-child(3) { animation-delay: 0.9s; }

/* 响应式设计 */
@media (max-width: 480px) {
    .grid-item {
        padding: 1.2em 0.6em;
        margin: 0 0.3em;
        min-height: 6em;
    }
    
    .grid-icon {
        width: 3em;
        height: 3em;
        margin-bottom: 0.8em;
    }
    
    .grid-icon svg {
        width: 1.5em;
        height: 1.5em;
    }
    
    .grid-item .ut-s {
        font-size: 0.8em;
    }
    
    #gridview {
        padding: 1em 0.8em;
        margin: 0.8em;
    }
}